#!/usr/bin/python
import sys

# parameters.
unique_file = sys.argv[1]
target_file = sys.argv[2]

# Read in unique names.
fin = open(unique_file, "rb")
lines = fin.readlines()
fin.close()

uniq = {}
for line in lines:
	tmp = line.strip()
	uniq[tmp] = True
	
# Read in target.
fin = open(target_file, "rb")
lines = fin.readlines()
fin.close()

for line in lines:
	tmp = line.strip().split("\t")
	if tmp[2] not in uniq:
		print tmp[0]
